package MREngine;

/**
 * This class is to provide the basic class
 * for container of a user-defined datablock.
 * 
 * User should extend the class.
 * When emitting the intermediate data after 
 * mapping, the use the getLable function
 * to pass the label to EmitIntermediate().
 */
public class MREData {
	private var blockSize:Int;
	
	/** the index used in the parallel version to index the mapper. */
	private var label:Int;
	
	public def getBlockSize() = blockSize;
	
	public def setLabel(_l:Int):void 
	{
		label = _l;
	}
	
	/** get the label of this DataBlock */
	public def getLabel() = label;
	
	//public var Content:[some user-def type]
}